﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Ship002
{
    class Camera
    {
        private Vector3 position;
        private Vector3 target;

        public Matrix view;
        public Matrix projection;

        

        GraphicsDevice device;


        public Camera(Vector3 position, Vector3 target, GraphicsDevice device)
        {
            this.position = position;
            this.target = target;
            this.device = device;

            this.view = Matrix.CreateLookAt(position, target, Vector3.Up);
            this.projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(45), device.Viewport.AspectRatio, 0.1f, 10000.0f);
        }

    }
}
